home *** CD-ROM | disk | FTP | other *** search
- ; Script to install DOpus PLUS CD parts to DOpus5: directory
- ;
- ; DOpus PLUS Install Version $VER: DOpus_PLUS_Install 1.0 (20.10.98)
- ; COPYRIGHT ©1997 GP SOFTWARE, AUSTRALIA
- ; note uses Opus<Alt-Shift>5
-
-
- (complete 0)
-
-
- (set @default-dest "Dopus5:")
-
- (set #CDSource "DOPLUS:")
- (set #DO_Dest "DOpus5:DOPLUS")
- (set #DO_Dir "DOpus5:")
-
- (set #Ibrowse "Ibrowse")
- (set #AWeb "AWeb-II")
- (set #Voyager "V")
-
- (set #Ibrowse_path (tackon "Work:Ibrowse/" #Ibrowse))
- (set #AWeb_path (tackon "Work:Aweb3/" #AWeb))
- (set #Voyager_path (tackon "Work:Voyager/" #Voyager))
-
-
- (set #Go "Proceed")
- (set #Skip "Skip this part")
-
- (set #Title_msg "DOpus PLUS Installation.\n\n")
-
- (message #Title_msg
- "Install and Set up easy access to the DOplus CD\n\n"
- "This script installs a few files in your DOpus5:"
- " directory to give you easy access to the CD.\n\n"
- "It also allows you to select your preferred HTML browser"
- " with which to view the tutorials and other material."
- )
-
- ; a bit loopy really
-
- (while (
- (set #Title_msg "DOpus PLUS Installation.\n\n")
- (set #browser
- (askchoice
- (prompt #Title_msg
- "Which HTML browser do you use?")
-
- (help "Select the HTML browser.")
- (choices
- "IBrowse" ; 0
- "AWeb" ; 1
- "Voyager" ; 2
-
- "Other" ; 3
- "None - use the default on the CD") ;4
-
- (default 4)
- )
- )
-
- (if (<> #browser 4)
- (
-
- (if (< #browser 3)
- (
- (set #browser_name (select #browser #Ibrowse #AWeb #Voyager))
- (set #browser_path (select #browser #Ibrowse_path #AWeb_path #Voyager_path))
- )
- (
- (set #browser_name "Other Browser")
- (set #browser_path "Work:")
- )
- )
-
- (set #filepath
- (askfile
- (prompt "Please select the file path to your browser "#browser_name)
- (help @askfile-help)
- (default #browser_path )
- )
- )
-
- (if (set #ok (askbool
- (prompt "For your preferred browser you have selected \n\n"
- #filepath "\n\n"
- "Is this correct?"
- )
- (help @ask-bool)
- (default 1)
- )
- )
- )
- )
- (set #ok 1)
-
- )
- (<> #ok 1)
- )
- )
-
-
- (makedir #DO_Dest (infos) (safe))
- (copyfiles
- (source (tackon #CDSource "tutorial/HTML/franknord"))
- (dest #DO_Dest)
- (newname "DOpusPlus.html")
- )
-
-
- (copyfiles
- (source (tackon #CDSource "DOpusPlus.html.info"))
- (dest #DO_Dest)
- )
-
- (copyfiles
- (source (tackon #CDSource "tutorial/HTML/Scripts"))
- (dest #DO_Dest)
- (all)
- (infos)
-
- )
-
- (copyfiles
- (source (tackon #CDSource "tutorial/HTML/groups"))
- (dest (tackon #DO_Dir "Groups"))
- (all)
- (infos)
-
- )
-
-
- (tooltype
- (dest (tackon #DO_Dest "DOpusPlus.html"))
- (noposition)
- )
-
- (tooltype
- (dest (tackon #DO_Dest "Make_Assigns"))
- (noposition)
- )
-
- (tooltype
- (dest (tackon #DO_Dest "Remove_Assigns"))
- (noposition)
- )
-
-
- (if (<> #browser 4)
- (
- (tooltype
- (dest (tackon #DO_Dest "DOpusPlus.html"))
- (setdefaulttool #filepath)
- (prompt "Setting the default tool for the DOpusPLUS project"
- " icon.\n\n"
- "Preferred Browser - "#browser_name
- "\nFile path - "#filepath)
- (help "Sets the default tool!")
- (confirm)
- )
- )
- )
-
- (message #Title_msg
- "The DOpus PLUS installation is complete.\n\n"
- "This has installed a new Program Group to facilitate access to"
- " the tutorial.\n\n"
- "This will not be visible on your Desktop until you either"
- " restart Opus or select Reset from the Icons Menu."
- )
-
- (complete 100)
-
-
-
-
-
-
-
-
-
-